package com.weixinli.beans;

import java.io.Serializable;

public class Friend implements Serializable{
	private int fid;//编号
	private int w_uid;//本人ID
	private int friend_id;//好友ID
	private int fstatus;//是否添加
	private String ftime;//日期
	private static final long serialVersionUID = 1L;
	@Override
	public String toString() {
		return "Friend [fid=" + fid + ", w_uid=" + w_uid + ", friend_id="
				+ friend_id + ", fstatus=" + fstatus + ", ftime=" + ftime + "]";
	}

	public int getFid() {
		return fid;
	}

	public void setFid(int fid) {
		this.fid = fid;
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public int getFriend_id() {
		return friend_id;
	}

	public void setFriend_id(int friend_id) {
		this.friend_id = friend_id;
	}

	public int getFstatus() {
		return fstatus;
	}

	public void setFstatus(int fstatus) {
		this.fstatus = fstatus;
	}

	public String getFtime() {
		return ftime;
	}

	public void setFtime(String ftime) {
		this.ftime = ftime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + fid;
		result = prime * result + friend_id;
		result = prime * result + fstatus;
		result = prime * result + ((ftime == null) ? 0 : ftime.hashCode());
		result = prime * result + w_uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Friend other = (Friend) obj;
		if (fid != other.fid)
			return false;
		if (friend_id != other.friend_id)
			return false;
		if (fstatus != other.fstatus)
			return false;
		if (ftime == null) {
			if (other.ftime != null)
				return false;
		} else if (!ftime.equals(other.ftime))
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}

	public Friend(int fid, int w_uid, int friend_id, int fstatus, String ftime) {
		super();
		this.fid = fid;
		this.w_uid = w_uid;
		this.friend_id = friend_id;
		this.fstatus = fstatus;
		this.ftime = ftime;
	}

	public Friend() {
		super();
	}
}
